	solution "dq"
--------------------------------------------------------------------------------------
	project "dq_client"
	configurations { "Release", "Debug","Release_UDLL","Debug_UDLL"}
		targetname  "dq_client"  language    "C++" flags       { "No64BitChecks", "ExtraWarnings" }
		files	{"../client/**.*"}
                        libdirs { "../libs"} libdirs{"../bin/release"} libdirs{"../bin/debug"}

		configuration "Debug"
			targetname  "dq_client"   targetdir   "../bin/debug"  objdir      "../_out/debug"
                                    kind        "ConsoleApp"--ConsoleApp SharedLib StaticLib WindowedApp
			defines     {"_DEBUG","_CRT_SECURE_NO_DEPRECATE","WIN32"}--,"_WINDOWS"}
			links       {"user32" ,"kernel32", "gdi32","winmm","dqnetworkd","dqmsgd","dqprotod"}
			flags       {"Symbols"}--,"WinMain"}

		configuration "Debug_UDLL"
			targetname  "dq_client"   targetdir   "../bin/debug"  objdir      "../_out/debug"
                                    kind        "ConsoleApp"--ConsoleApp SharedLib StaticLib WindowedApp
			defines     {"_DEBUG","_CRT_SECURE_NO_DEPRECATE","WIN32"}--,"_WINDOWS"}
			links       {"user32" ,"kernel32", "gdi32","winmm","dqnetworked","dqmsged","dqprotoed"}
			flags       {"Symbols"}--,"WinMain"}
                        
		configuration "Release"
			targetname  "dq_client" targetdir   "../bin/release" objdir 	    "../_out/release"
                                    kind        "ConsoleApp"--ConsoleApp SharedLib StaticLib WindowedApp
			defines     {"NDEBUG","_CRT_SECURE_NO_DEPRECATE","WIN32"}--,"_WINDOWS"}
			links       {"user32" ,"kernel32", "gdi32","winmm","dqnetworkr","dqmsgr","dqprotor"}
			flags       { "OptimizeSize"}--,"WinMain"}

		configuration "Release_UDLL"
			targetname  "dq_client" targetdir   "../bin/release" objdir 	    "../_out/release"
                                    kind        "ConsoleApp"--ConsoleApp SharedLib StaticLib WindowedApp
			defines     {"NDEBUG","_CRT_SECURE_NO_DEPRECATE","WIN32"}--,"_WINDOWS"}
			links       {"user32" ,"kernel32", "gdi32","winmm","dqnetworker","dqmsger","dqprotoer"}
			flags       { "OptimizeSize"}--,"WinMain"}
-----------------------------------------------------------------------------------

--------------------------------------------------------------------------------------
--	solution "dqs"
	project "dq_server"
	configurations { "Release", "Debug","Release_UDLL","Debug_UDLL"}
           	targetname  "dq_server"  language    "C++"  flags      { "No64BitChecks", "ExtraWarnings"}
           	files {"../server/**.*"}
           	 libdirs { "../libs" }libdirs{"../bin/debug"}libdirs{"../bin/release"}

		configuration "Debug"
			targetname  "dq_server" targetdir   "../bin/Debug" objdir      "../_out/debug"
                                    kind        "ConsoleApp"--ConsoleApp SharedLib StaticLib WindowedApp
			defines     {"_DEBUG","_CRT_SECURE_NO_DEPRECATE","WIN32"}--,"_WINDOWS"}
			links       {"user32" ,"kernel32", "gdi32","winmm","dqnetworkd","dqmsgd","dqprotod"}
			flags       {"Symbols"}--,"WinMain"}
                        
		configuration "Debug_UDLL"
			targetname  "dq_server" targetdir   "../bin/Debug" objdir      "../_out/debug"
                                    kind        "ConsoleApp"--ConsoleApp SharedLib StaticLib WindowedApp
			defines     {"_DEBUG","_CRT_SECURE_NO_DEPRECATE","WIN32"}--,"_WINDOWS"}
			links       {"user32" ,"kernel32", "gdi32","winmm","dqnetworked","dqmsged","dqprotoed"}
			flags       {"Symbols"}--,"WinMain"}

		configuration "Release"
			targetname  "dq_server" targetdir   "../bin/Release" objdir "../_out/Release"
                                    kind        "ConsoleApp"--ConsoleApp SharedLib StaticLib WindowedApp
			defines     {"NDEBUG","_CRT_SECURE_NO_DEPRECATE","WIN32"}--,"_WINDOWS"}
			links       {"user32" ,"kernel32", "gdi32","winmm","dqnetworkr","dqmsgr","dqprotor"}	
                		flags       { "OptimizeSize"}--,"WinMain"}

		configuration "Release_UDLL"
			targetname  "dq_server" targetdir   "../bin/Release" objdir "../_out/Release"
                                    kind        "ConsoleApp"--ConsoleApp SharedLib StaticLib WindowedApp
			defines     {"NDEBUG","_CRT_SECURE_NO_DEPRECATE","WIN32"}--,"_WINDOWS"}
			links       {"user32" ,"kernel32", "gdi32","winmm","dqnetworker","dqmsger","dqprotoer"}	
                		flags       { "OptimizeSize"}--,"WinMain"}
--------------------------------------------------------------------------------------
 --         solution "dqnet"
	project "dq_network"
	configurations { "Release", "Debug","Release_UDLL", "Debug_UDLL"}
		targetname  "dq_network"
		language    "C++"
		flags       { "No64BitChecks", "ExtraWarnings" }

                                includedirs{                }
		files
		{
                                    -- "**.c","**.h","**.s","**.py","**.cc","**.cpp"
		   "../dqnetwork/**.*"
		}

		configuration "Debug"
			targetname  "dqnetworkd" targetdir "../bin/Debug" objdir "../_out/debug"
                                                kind        "StaticLib"--ConsoleApp SharedLib StaticLib WindowedApp
			defines     {"_DEBUG","_CRT_SECURE_NO_DEPRECATE","WIN32"}--,"_WINDOWS"}
			links       {"user32" ,"kernel32", "gdi32","winmm"}
			flags       {"Symbols"}--,"WinMain"}
                        
		configuration "Debug_UDLL"
			targetname  "dqnetworked" targetdir "../bin/Debug" objdir "../_out/debug"
			kind        "SharedLib"--ConsoleApp SharedLib StaticLib WindowedApp
			defines     {"_DEBUG","_CRT_SECURE_NO_DEPRECATE","WIN32","DQ_EXPORT"}--,"_WINDOWS"}
			links       {"user32" ,"kernel32", "gdi32","winmm"}
			flags       {"Symbols"}--,"WinMain"}

		configuration "Release"
			targetname  "dqnetworkr" targetdir   "../bin/Release" objdir    "../_out/Release"
			kind        "StaticLib"--ConsoleApp SharedLib StaticLib WindowedApp
			defines     {"NDEBUG","_CRT_SECURE_NO_DEPRECATE","WIN32"}--,"_WINDOWS"}
			links       {"user32" ,"kernel32", "gdi32","winmm"}
			flags       { "OptimizeSize"}--,"WinMain"}

		configuration "Release_UDLL"
			targetname  "dqnetworker" targetdir   "../bin/Release" objdir    "../_out/Release"
			kind        "SharedLib"--ConsoleApp SharedLib StaticLib WindowedApp
			defines     {"NDEBUG","_CRT_SECURE_NO_DEPRECATE","WIN32","DQ_EXPORT"}--,"_WINDOWS"}
			links       {"user32" ,"kernel32", "gdi32","winmm"}
			flags       { "OptimizeSize"}--,"WinMain"}
-----------------------------------------------------------------------------------


--------------------------------------------------------------------------------------
 --         solution "dqnet"
	project "dq_msg"
	configurations { "Release", "Debug","Release_UDLL", "Debug_UDLL"}
		language    "C++"
		flags       { "No64BitChecks", "ExtraWarnings" }

		files{ "../dqmsg/**.*"}

		configuration "Debug"
			targetname  "dqmsgd" targetdir "../bin/Debug" objdir "../_out/debug"
		                kind        "StaticLib"--ConsoleApp SharedLib StaticLib WindowedApp
			defines     {"_DEBUG","_CRT_SECURE_NO_DEPRECATE","WIN32"}--,"_WINDOWS"}
			links       {"user32" ,"kernel32", "gdi32","winmm"}
			flags       {"Symbols"}--,"WinMain"}
                        
		configuration "Debug_UDLL"
			targetname  "dqmsged" targetdir "../bin/Debug" objdir "../_out/debug"
			kind        "SharedLib"--ConsoleApp SharedLib StaticLib WindowedApp
			defines     {"_DEBUG","_CRT_SECURE_NO_DEPRECATE","WIN32","DQ_EXPORT"}--,"_WINDOWS"}
			links       {"user32" ,"kernel32", "gdi32","winmm"}
			flags       {"Symbols"}--,"WinMain"}

		configuration "Release"
			targetname  "dqmsgr" targetdir   "../bin/Release" objdir    "../_out/Release"
			kind        "StaticLib"--ConsoleApp SharedLib StaticLib WindowedApp
			defines     {"NDEBUG","_CRT_SECURE_NO_DEPRECATE","WIN32"}--,"_WINDOWS"}
			links       {"user32" ,"kernel32", "gdi32","winmm"}
			flags       { "OptimizeSize"}--,"WinMain"}

		configuration "Release_UDLL"
			targetname  "dqmsger" targetdir   "../bin/Release" objdir    "../_out/Release"
                                    kind        "SharedLib"--ConsoleApp SharedLib StaticLib WindowedApp
			defines     {"NDEBUG","_CRT_SECURE_NO_DEPRECATE","WIN32","DQ_EXPORT"}--,"_WINDOWS"}
			links       {"user32" ,"kernel32", "gdi32","winmm"}
			flags       { "OptimizeSize"}--,"WinMain"}
-----------------------------------------------------------------------------------

--------------------------------------------------------------------------------------
 --         solution "dqnet"
	project "dq_proto"
	configurations { "Release", "Debug","Release_UDLL", "Debug_UDLL"}
		language    "C++"
		flags       { "No64BitChecks", "ExtraWarnings" }

		files{ "../dqproto/**.*"}

		configuration "Debug"
			targetname  "dqprotod" targetdir "../bin/Debug" objdir "../_out/debug"
                                    kind        "StaticLib"--ConsoleApp SharedLib StaticLib WindowedApp
			defines     {"_DEBUG","_CRT_SECURE_NO_DEPRECATE","WIN32"}--,"_WINDOWS"}
			links       {"user32" ,"kernel32", "gdi32","winmm"}
			flags       {"Symbols"}--,"WinMain"}
                        
		configuration "Debug_UDLL"
			targetname  "dqprotoed" targetdir "../bin/Debug" objdir "../_out/debug"
                                    kind        "StaticLib"--ConsoleApp SharedLib StaticLib WindowedApp
			defines     {"_DEBUG","_CRT_SECURE_NO_DEPRECATE","WIN32","DQ_EXPORT"}--,"_WINDOWS"}
			links       {"user32" ,"kernel32", "gdi32","winmm"}
			flags       {"Symbols"}--,"WinMain"}

		configuration "Release"
			targetname  "dqprotor" targetdir   "../bin/Release" objdir    "../_out/Release"
                                    kind        "StaticLib"--ConsoleApp SharedLib StaticLib WindowedApp
			defines     {"NDEBUG","_CRT_SECURE_NO_DEPRECATE","WIN32"}--,"_WINDOWS"}
			links       {"user32" ,"kernel32", "gdi32","winmm"}
			flags       { "OptimizeSize"}--,"WinMain"}

		configuration "Release_UDLL"
			targetname  "dqprotoer" targetdir   "../bin/Release" objdir    "../_out/Release"
                                    kind        "StaticLib"--ConsoleApp SharedLib StaticLib WindowedApp
			defines     {"NDEBUG","_CRT_SECURE_NO_DEPRECATE","WIN32","DQ_EXPORT"}--,"_WINDOWS"}
			links       {"user32" ,"kernel32", "gdi32","winmm"}
			flags       { "OptimizeSize"}--,"WinMain"}
-----------------------------------------------------------------------------------

			dofile("dqclientprj.lua")
-----------------------------------------------------------------------------------	
	if _ACTION == "clean" then
	   os.rmdir("../bin")
		os.rmdir("../_out")
	end
